﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENMANHDUNG.OOP.Excercises
{
    class MODELS
    {
        public bool CheckUser(USERENTITY objEntity)
        { 
            //C1 Sử dụng if... else
            /*if (objEntity.UserName.Equals("Dungnm")
                && objEntity.Password.Equals("Nothing"))
            {
                return true;
            }
            else 
            {
                return false; 

            }*/
            //C2 sử dụng toán tử 3 ngôi 
            return (objEntity.UserName.Equals("Dungnm")
                && objEntity.Password.Equals("nothing")) ? true : false;

            




        }



    }

    
}
